package com.chs.recoginition.aip;

import com.alibaba.fastjson.JSONObject;
import com.chs.recoginition.core.config.FeignConfig;
import feign.Headers;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author CHS
 * @Date 2023/2/16 21:10
 * @Version 1.0
 **/
@FeignClient(name = "Ovooa", url = "http://ovooa.com", configuration = FeignConfig.class)
public interface Ovooa {

    /**
     * 获取百度百科内容
     * @param Msg
     * @return
     */
    @RequestMapping(value = "/API/bdbk", method = RequestMethod.GET)
    @Headers(value = "Content-Type: application/x-www-form-urlencoded")
    JSONObject getMsg(@RequestParam("Msg") String Msg);
}
